package com.yuhuihui.common.utils.http;

import java.io.InputStream;
import java.util.Map;

/**
 * http参数
 *
 * @author yuhh
 * @date 2021-08-10 16:54:08
 */
public class HttpParameter {

    /** 请求地址  */
    private String url;

    /** 请求头集合  */
    private Map<String, String> headers;

    /** 请求参数集合  */
    private Map<String, String> params;

    /** 输入流  */
    private InputStream input;

    public HttpParameter(String url){
        this.url = url;
    }

    public HttpParameter(){}

    public String getUrl() {
        return url;
    }

    public HttpParameter setUrl(String url) {
        this.url = url;
        return this;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public HttpParameter setHeaders(Map<String, String> headers) {
        this.headers = headers;
        return this;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public HttpParameter setParams(Map<String, String> params) {
        this.params = params;
        return this;
    }

    public InputStream getInput() {
        return input;
    }

    public HttpParameter setInput(InputStream input) {
        this.input = input;
        return this;
    }
}
